﻿<%@ Page Title="文章列表" Language="C#" MasterPageFile="~/Masters/Account.Master" AutoEventWireup="true"
    CodeBehind="ArticleList.aspx.cs" Inherits="TopSite.Account.ArticleList" %>

<%@ Import Namespace="LEARNREN.COM.Entity.Enum" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridViewArticleList" runat="server" AutoGenerateColumns="False"
        AllowPaging="True" OnPageIndexChanging="GridViewArticleList_PageIndexChanging"
        PageSize="20" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" 
        BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" CssClass=" gridViewClass">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="Id" HeaderText="Id" />
            <asp:BoundField DataField="Title" HeaderText="标题" />
            <asp:BoundField DataField="ClickNum" HeaderText="点击" />
            <asp:BoundField DataField="CreatedTime" HeaderText="发布时间" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:HyperLink ID="hlinkEdit" runat="server" NavigateUrl='<%# "ArticleEdit.aspx?action="+EditStateEnum.Edit.ToString()+"&id="+Eval("Id").ToString() %>'>编辑</asp:HyperLink>
                    &nbsp;
                    <asp:LinkButton ID="lbtnDel" runat="server" OnClientClick="return confirm('确认要删除吗？');" CommandArgument='<%#Eval("Id") %>'
                        OnClick="lbtnDel_Click">删除</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />
    </asp:GridView>
</asp:Content>
